package com.njwt.cloud.mscommon.feign.client;

import com.njwt.cloud.mscommon.feign.config.FeignRequestInterceptorConfig;
import com.njwt.cloud.mscommon.feign.fallback.RoleClientFallBack;
import com.njwt.cloud.mscommon.feign.fallback.UserClientFallBack;
import com.njwt.cloud.mscommon.support.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author <a href="mailto:xingxiaofeng@gtmap.cn">xingxiaofeng</a>
 * @date 2022-06-23
 * @desc RoleClient
 */
@FeignClient(contextId = "roleClient", name = "user-provider", configuration = FeignRequestInterceptorConfig.class, fallback = RoleClientFallBack.class)
public interface RoleClient {

    @PostMapping("/add")
     ApiResponse add();

    @PostMapping("/update")
     ApiResponse update();

    @DeleteMapping("/delete")
     ApiResponse delete();

    @GetMapping("/get")
     ApiResponse get() ;
}
